Espressif Systems /ESP32-P4 /PCNT /U1_CONF0

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as U1_CONF0

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0FILTER_THRES_U0 (FILTER_EN_U)FILTER_EN_U 0 (THR_ZERO_EN_U)THR_ZERO_EN_U 0 (THR_H_LIM_EN_U)THR_H_LIM_EN_U 0 (THR_L_LIM_EN_U)THR_L_LIM_EN_U 0 (THR_THRES0_EN_U)THR_THRES0_EN_U 0 (THR_THRES1_EN_U)THR_THRES1_EN_U 0CH0_NEG_MODE_U 0CH0_POS_MODE_U 0CH0_HCTRL_MODE_U 0CH0_LCTRL_MODE_U 0CH1_NEG_MODE_U 0CH1_POS_MODE_U 0CH1_HCTRL_MODE_U 0CH1_LCTRL_MODE_U

Description

Configuration register 0 for unit 1

Fields

FILTER_THRES_U

This sets the maximum threshold, in APB_CLK cycles, for the filter.

Any pulses with width less than this will be ignored when the filter is enabled.

FILTER_EN_U

This is the enable bit for unit %s’s input filter.

THR_ZERO_EN_U

This is the enable bit for unit %s’s zero comparator.

THR_H_LIM_EN_U

This is the enable bit for unit %s’s thr_h_lim comparator. Configures it to enable the high limit interrupt.

THR_L_LIM_EN_U

This is the enable bit for unit %s’s thr_l_lim comparator. Configures it to enable the low limit interrupt.

THR_THRES0_EN_U

This is the enable bit for unit %s’s thres0 comparator.

THR_THRES1_EN_U

This is the enable bit for unit %s’s thres1 comparator.

CH0_NEG_MODE_U

This register sets the behavior when the signal input of channel 0 detects a negative edge.

1: Increase the counter.2: Decrease the counter.0, 3: No effect on counter

CH0_POS_MODE_U

This register sets the behavior when the signal input of channel 0 detects a positive edge.

1: Increase the counter.2: Decrease the counter.0, 3: No effect on counter

CH0_HCTRL_MODE_U

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is high.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

CH0_LCTRL_MODE_U

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is low.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

CH1_NEG_MODE_U

This register sets the behavior when the signal input of channel 1 detects a negative edge.

1: Increment the counter.2: Decrement the counter.0, 3: No effect on counter

CH1_POS_MODE_U

This register sets the behavior when the signal input of channel 1 detects a positive edge.

1: Increment the counter.2: Decrement the counter.0, 3: No effect on counter

CH1_HCTRL_MODE_U

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is high.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

CH1_LCTRL_MODE_U

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is low.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

Links

() ()